#!/bin/bash
echo "Building simplified AI system..."
echo

WXWIN="/d/vc/wxWidgets-3.2.7"

# 编译简化版本
g++ -std=c++11 -O2 -Wall -Wextra \
    -I$WXWIN/include -I$WXWIN/include/msvc \
    -D__WXMSW__ -D_UNICODE -DUNICODE \
    src/cbp2make_ai_simple.cpp \
    -L$WXWIN/lib/gcc_x64_dll \
    -lwxmsw32u_core -lwxbase32u \
    -lkernel32 -luser32 -lgdi32 \
    -o cbp2make_ai_simple.exe

if [[ $? -eq 0 ]]; then
    echo "✅ Simple build successful!"
    ls -lh cbp2make_ai_simple.exe
    echo "Testing..."
    ./cbp2make_ai_simple.exe --ai-status
else
    echo "❌ Simple build failed"
fi
